import request from '@/utils/request'

// 获取绩效考核页面
export function getbizAssessCount(data) {
  return request({
    url: '/office/bizOfficeAssess/getAssessCount',
    method: 'post',
    data
  })
}

// 获取绩效考核（按指标考核）展示
export function getAssessItemByIndicator(params) {
  return request({
    url: '/office/bizOfficeAssess/getAssessItemByIndicator',
    method: 'post',
    params
  })
}

// 获取绩效考核（按人员考核）展示
export function getAssessItemByPerson(params) {
  return request({
    url: '/office/bizOfficeAssess/getAssessItemByPerson',
    method: 'post',
    params
  })
}

// 获取绩效考核（按指标考核）ID列表
export function getAssessItemIdsByIndicator(params) {
  return request({
    url: '/office/bizOfficeAssess/getAssessItemIdsByIndicator',
    method: 'post',
    params
  })
}

// 获取绩效考核（按人员考核）ID列表
export function getAssessItemIdsByPerson(params) {
  return request({
    url: '/office/bizOfficeAssess/getAssessItemIdsByPerson',
    method: 'post',
    params
  })
}

// 获取绩效考核自评展示
export function getSelfAssessItem(params) {
  return request({
    url: '/office/bizOfficeAssess/getSelfAssessItem',
    method: 'post',
    params
  })
}

// 更新绩效考核他评分数（按指标）
export function updateAssessScoreByIndicator(data) {
  return request({
    url: '/office/bizOfficeAssess/updateAssessScoreByIndicator',
    method: 'post',
    data
  })
}

// 更新绩效考核他评分数（按人员考核）
export function updateAssessScoreByPerson(data) {
  return request({
    url: '/office/bizOfficeAssess/updateAssessScoreByPerson',
    method: 'post',
    data
  })
}

// 更新绩效考核自评分数
export function updateSelfAssessScore(data) {
  return request({
    url: '/office/bizOfficeAssess/updateSelfAssessScore',
    method: 'post',
    data
  })
}

// 获取考评列表-自评
export function getSelfAssessList(data) {
  return request({
    url: '/office/bizOfficeAssess/SelfAssessList',
    method: 'post',
    data
  })
}

// 获取考评列表-按人考评
export function getAssessListByPerson(data) {
  return request({
    url: '/office/bizOfficeAssess/AssessListByPerson',
    method: 'post',
    data
  })
}

// 获取考评列表-按指标考评
export function getAssessListByIndicators(data) {
  return request({
    url: '/office/bizOfficeAssess/AssessListByIndicators',
    method: 'post',
    data
  })
}

// 获取历史评分列表
export function getAssessHistoryList(data) {
  return request({
    url: '/office/bizOfficeAssessScore/getScoreDetailList',
    method: 'post',
    data
  })
}
